
package tugas.akhir.jason;

import tugas.akhir.jason.DBAdapter.DatabaseHelper;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class XmlExportActivity extends Activity {
	private DatabaseHelper databaseOpenHelper;
	
	public void onCreate(Bundle bundle) {
		super.onCreate(bundle);
		
		setContentView(R.layout.xmlexport);
		
		databaseOpenHelper = new DatabaseHelper (this);
		
		Button exportButton = (Button) findViewById(R.id.exportbutton);
		exportButton.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				XmlExport exporter = new XmlExport(XmlExportActivity.this, databaseOpenHelper.getReadableDatabase());
				exporter.exportData();
			}
			
		});
	}
}
